<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'account-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'loginName'); ?>
		<?php echo $form->textField($model,'loginName',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'loginName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password_hash'); ?>
		<?php echo $form->textField($model,'password_hash',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'password_hash'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cPhone'); ?>
		<?php echo $form->textField($model,'cPhone',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'cPhone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cEMail'); ?>
		<?php echo $form->textField($model,'cEMail',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'cEMail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cRealName'); ?>
		<?php echo $form->textField($model,'cRealName',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'cRealName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cQuestion'); ?>
		<?php echo $form->textField($model,'cQuestion',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'cQuestion'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'cAnswer'); ?>
		<?php echo $form->textField($model,'cAnswer',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'cAnswer'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Coin'); ?>
		<?php echo $form->textField($model,'Coin',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'Coin'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lockpassword'); ?>
		<?php echo $form->textField($model,'lockpassword',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'lockpassword'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'refName'); ?>
		<?php echo $form->textField($model,'refName',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'refName'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->